{% extends "one_column_body.html" %}
<!-- template close.html -->
{% block title %}{% spaceless %}{{ settings.WORDS_CLOSE_QUESTION|escape }}{% endspaceless %}{% endblock %}
{% block content %}
<h1>{{ settings.WORDS_CLOSE_QUESTION|escape }}</h1>
<p>{{ settings.WORDS_CLOSE_QUESTION|escape }}: 
    <a href="{{ question.get_absolute_url() }}">
    <strong>{{ question.get_question_title()|escape }}</strong></a>
</p>
<form id="fmclose" action="{% url close question.id %}" method="post" >{% csrf_token %}
    <p>
        <strong>{% trans %}Reasons{% endtrans %}:</strong>
        {{ form.reason }}
    </p>
    <p>
    <input type="submit" value="{% trans %}OK to close{% endtrans %}"/>
    <input id="btBack" type="button" value="{% trans %}Cancel{% endtrans %}"/>
    </p>
</form>
{% endblock %}
{% block endjs %}
    <script type="text/javascript">
        $(document).ready(function(){
            $('#btBack').bind('click', function(){ history.back(); });
        });
    </script>
{% endblock %}
<!-- end template close.html -->
